<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../bootstrap-5.1.3-dist/css/bootstrap.css">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.js"></script>
</head>

<body class="container">
    <h3 align="center">菜单项添加分割线</h3>
    <div class="dropdown">
        <button class="btn btn-secondary dropdown-toggle" data-bs-toggle="dropdown" type="button">
            惠丰商城
        </button>
        <div class="dropdown-menu">
            <button class="dropdown-item" type="button">家用电器</button>
            <button class="dropdown-item" type="button">电脑数码</button>
            <button class="dropdown-item" type="button">男装女装</button>
            <div class="dropdown-divider"></div>
            <button class="dropdown-item" type="button">珠宝箱包</button>
            <button class="dropdown-item" type="button">水果特产</button>
            <button class="dropdown-item" type="button">男鞋女鞋</button>
        </div>
    </div>
</body>

</html>

</html>